﻿<src:WpfConfiguration x:Class="Total_Mayhem.Power.MonitorPowerReactionsConfig"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:src="clr-namespace:MayhemWpf.UserControls;assembly=MayhemWpf"
             xmlns:common="clr-namespace:Total_Mayhem.Common"
             Width="400"
             mc:Ignorable="d" 
             d:DesignHeight="300">
    <src:WpfConfiguration.Resources>

    </src:WpfConfiguration.Resources>

    <Grid >
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="133" />
            <ColumnDefinition Width="207" />
            <ColumnDefinition Width="60" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="60"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="20"/>
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <TextBlock Grid.Row="0" Grid.ColumnSpan="3" HorizontalAlignment="Center" TextAlignment="Center" Margin="0,10,0,10" TextWrapping="Wrap">
			Changes the power state of all of your monitors. Options are Power Off, Power On, and Suspend/Sleep (Not supported by all monitors)
        </TextBlock>

        <TextBlock Style="{StaticResource ConfigLabel}" Grid.Column="0" Grid.Row="1">Action:</TextBlock>
        <ComboBox Grid.Column="1" Grid.Row="1" Height="23" HorizontalAlignment="Left" VerticalAlignment="Center" Name="cmbCommand" Width="120" SelectionChanged="cmbCommand_SelectionChanged" >
            <ComboBoxItem IsSelected="True" Tag="nircmd.exe monitor off" Content="Power Off"/>
            <ComboBoxItem Tag="nircmd.exe monitor on" Content="Power On"/>
            <ComboBoxItem Tag="nircmd.exe monitor low" Content="Suspend/Sleep"/>
        </ComboBox>
        
        <Button Name="btnTest" Margin="5,0,0,0" Width="50" Click="btnTest_Click" Grid.Column="2" Grid.Row="1" IsEnabled="True">Test</Button>

        <TextBlock Style="{StaticResource ConfigErrorMessage}" Name="textInvalid" Grid.Column="0" Grid.ColumnSpan="3" Grid.Row="2" TextAlignment="Center">An error occured. This is the status message.</TextBlock>
        <TextBlock Grid.Column="0" Grid.ColumnSpan="3" Grid.Row="3" TextAlignment="Center" VerticalAlignment="Top">For more details please visit the <Hyperlink Name="hlHelp" NavigateUri="http://www.nirsoft.net/utils/nircmd2.html#commands" TargetName="_blank">NirCmd help page</Hyperlink></TextBlock>
    </Grid>
</src:WpfConfiguration>
